package com.distribute.pojo.Task;

import com.distribute.pojo.enums.ConditionType;

public class TaskRelation {
    private String name;

    private Long preTaskCode;

    private Integer preTaskVersion;

    private Long postTaskCode;

    private Integer postTaskVersion;

    private ConditionType conditionType;

    private Object conditionParams;

    public TaskRelation() {
    }

    public TaskRelation(String name, Long preTaskCode, Integer preTaskVersion, Long postTaskCode, Integer postTaskVersion, ConditionType conditionType, Object conditionParams) {
        this.name = name;
        this.preTaskCode = preTaskCode;
        this.preTaskVersion = preTaskVersion;
        this.postTaskCode = postTaskCode;
        this.postTaskVersion = postTaskVersion;
        this.conditionType = conditionType;
        this.conditionParams = conditionParams;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPreTaskCode() {
        return preTaskCode;
    }

    public void setPreTaskCode(Long preTaskCode) {
        this.preTaskCode = preTaskCode;
    }

    public Integer getPreTaskVersion() {
        return preTaskVersion;
    }

    public void setPreTaskVersion(Integer preTaskVersion) {
        this.preTaskVersion = preTaskVersion;
    }

    public Long getPostTaskCode() {
        return postTaskCode;
    }

    public void setPostTaskCode(Long postTaskCode) {
        this.postTaskCode = postTaskCode;
    }

    public Integer getPostTaskVersion() {
        return postTaskVersion;
    }

    public void setPostTaskVersion(Integer postTaskVersion) {
        this.postTaskVersion = postTaskVersion;
    }

    public ConditionType getConditionType() {
        return conditionType;
    }

    public void setConditionType(ConditionType conditionType) {
        this.conditionType = conditionType;
    }

    public Object getConditionParams() {
        return conditionParams;
    }

    public void setConditionParams(Object conditionParams) {
        this.conditionParams = conditionParams;
    }
}
